<%@taglib uri="/WEB-INF/struts-bean.tld"  prefix="bean"%>
<script language="JavaScript">
    function validate_form(){
        if ( document.DepartementForm.namaBagian.value == "" ){
            alert ( "<bean:message key="departement.nama"/> "+isEmpty );
        }else if(confirm("<bean:message key="label.confirm"/>")){
            document.DepartementForm.submit();
        }
    }

    var panels = new Array('panel1', 'panel2', 'panel3');
    var tabs = new Array('tab1', 'tab2', 'tab3');
    function displayPanel(nval)
    {
        for(i = 0; i < panels.length; i++)
        {
            document.getElementById(panels[i]).style.display = (nval-1 == i) ? 'block':'none';
            document.getElementById(tabs[i]).className=(nval-1 == i) ? 'tab_sel':'tab';
        }
    }
</script>


